package com.lbssoft.gpsbd.common;

/**
 * Created by nczc on 2018/2/21.
 */
public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_401(401, "TokenInvalid"),
    E_002(2, "ParameterError"),
    E_003(3, "PermissionDenied"),
    E_004(4, "RequestException"),
    E_005(5, "SyncException");

    private int errorCode;

    private String errorMsg;

    ErrorEnum() {
    }

    ErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}